﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace ThoiTrangT2B
{
    public partial class Site1 : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        public int LoadSpeed()
        {
            object Speed = SqlHelper.ExecuteScalar(CommandType.Text, "select TenDM from tblT2BDanhMuc where MaDM = 'speed'");
            if (Speed != null)
            {
                return Convert.ToInt32(Speed);
            }
            else
            {
                return 1000;
            }
        }
    }
}
